// https://gitee.com/ZiChenMuFeng/manager-fe
// vue 全家桶
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

// element-ui
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import locale from 'element-plus/lib/locale/lang/zh-cn'; //中文

// 全局对象
import request from './utils/request';
import api from './api';
import storage from './utils/storage';
import utils from './utils/utils';

// 全局指令
import auth from './directive/auth';

const app = createApp(App);

// 全局挂载
app.config.globalProperties.$request = request;
app.config.globalProperties.$api = api;
app.config.globalProperties.$storage = storage;
app.config.globalProperties.$utils = utils;

app.use(router).use(store).use(auth).use(ElementPlus, { size: 'small', locale }).mount('#app');
